package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 教师
 * Created by Lyon on 2017/4/20.
 */
@Data
@Table(name = "teacher")
public class Teacher extends Model {

    //唯一标识
    private String uuid;
    //电话
    @NotNull
    @Length(max = 12)
    private String tel;
    //密码
    @NotNull
    @Length(min = 6, max = 16)
    private String password;
    //昵称
    private String nickname;
    //性别
    private Integer sex;
    //生日
    private Date birthday;
    //头像地址
    private String headUrl;
    //个人简介
    private String personalInfo;
    //课程简介
    private String courseInfo;
    //省
    private String province;
    //市
    private String city;
    //区
    private String area;
    //验证码
    private String code;
}
